package exceptions;

class NeedsCleanup {
	private static long counter = 1;
	private final long id = counter ++;
	public void dispose (){
		System.out.println("NeedsClean throws " + id +" disposed");
	}
}
class Construction extends Exception{}

class NeedsCleanup2 extends NeedsCleanup{
	
}
public class CleanupIdiom {

}
